package model

import "fmt"

// 系统用户结构体
type SysUser struct {
	UserName string `json:"user_name"`
	PassWord string `json:"pass_word"`
}

// 定义初始用户
var userList = []SysUser{}

// 初始化函数
func init() {
	userList = append(userList, SysUser{
		"zhangsan",
		"111111",
	})

	userList = append(userList, SysUser{
		"lisi",
		"111111",
	})
	fmt.Println("初始化用户：", userList)
}

func UserList() []SysUser {
	return userList
}
